import React, { useState, useEffect } from "react";
import { Table ,Image} from "antd";

export default function ShufflingForm(props) {

  console.log('123123',props);
  const columns = [
    {
      title: "头像",
      dataIndex: "headPhoto",
      key: "headPhoto",
      render:(text,record)=>
        <Image src={record.headPhoto} style={{width:'50px',height:'50px'}}></Image>
   
    },
    {
      title: "下单时间",
      dataIndex: "OrderTime",
      key: "OrderTime",
    },
    {
      title: "件数",
      dataIndex: "num",
      key: "num",
    },
    {
      title: "金额",
      dataIndex: "pay",
      key: "pay",
    },
    // {
    //   title: "分类",
    //   dataIndex: "class",
    //   key: "class",
    // },
    {
      title: "商品名称",
      dataIndex: "name",
      key: "name",
    },
  ];
  const data = props.data
  console.log(data);

  return <Table columns={columns} dataSource={data} pagination={false} />;
}
